package im.vinci.server.user.domain.sms;

import java.util.HashMap;

/**
 * Created by mingjie on 17/3/28.
 */
public enum SmsType {
    Text("text"), Audio("audio");

    private String value;

    private static HashMap<String, SmsType> map = new HashMap<>();

    static {
        for (SmsType smsType : SmsType.values()) {
            map.put(smsType.value, smsType);
        }
    }

    private SmsType(String value) {
        this.value = value;
    }

    public static SmsType getSmsType(String value) {
        return map.get(value);
    }
}
